package com.example.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author 江晨晖
 * @since 2022-12-15
 */
@Data
@AllArgsConstructor
@TableName("exam_topic")
@ApiModel(value = "ExamTopic对象", description = "")
public class ExamTopic implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("考试id")
    @TableField("exam_id")
    private Integer examId;

    @ApiModelProperty("题目id")
    @TableField("topic_id")
    private Integer topicId;

    @ApiModelProperty("题目类型  0:单选题 1:多选题 2:判断题 3:填空题 4:简答题")
    @TableField("topic_type")
    private Integer topicType;


}